﻿// (c) Copyright 2013 Mike Riedel.
// This source is subject to the Microsoft Public License (Ms-PL).
// All other rights reserved.

using FreshMeat.Storage;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Storage.More.Test
{
   [TestClass]
   public class RespositoryTest : CommonRepositoryTest
   {
      protected override IRepository<int, Item> CreateRepository()
      {
         var mapper = new IdentityMapper<int, Item>(item => item.Id);
         var store = new MemoryStore<int, Item>(new JsonSerializer<Item>());
         var repo = new Repository<int, Item, Item>(mapper, store);

         return repo;
      }
   }
}

